import java.io.File;
import java.text.SimpleDateFormat;
import java.util.Date;

public class File1 {
    public static void main(String[] args) {
        File f=new File("D:\\IdeaProjects\\3");
        f.mkdirs();
        System.out.println(f.getAbsolutePath());
        Date date=new Date();
        System.out.println(date);
        SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMddHHmmss");
        System.out.println(sdf.format(date));
    }
}
